<%namespace YouHP.Model%>
<%namespace YouHP.Model.Group%>
<%namespace YouHP.Utility%>
<%namespace YouHP.BLL%>
<%template _header%>

<style>
.admin
{
	padding:10px 10px;
}
.admin li
{
  list-style-type:none;
   padding:5px 0px 5px 10px;
   border-bottom: 1px solid rgb(225, 228, 230);
   font-size:14px;

}
.admin li a
{
	font-weight:bold!important;
}
.loglist
{
	padding:10px 20px;

}
.loglist li
{
	border-bottom:1px solid #E1E4E6;
    padding:5px 10px;
    list-style-type:none;
    overflow:hidden;
}
.loglist a
{
	color:Green!important;
}


</style>

<div class="layout-cols2">
<div class="col1">

 <%csharp%>TempUrl = ModuleCtrl.Header4("LogTopicHottest",DiseaseData.Name+"病友的日志",false,false); <%/csharp%>
{TempUrl}

     <div class="loglist">
        <%csharp%>
            foreach(LogTopicInfo item in LogDataList) { 
                TempUrl = "/Profile/Log.aspx?uid=" + item.HostUserId + "&lid=" + item.Id;
        <%/csharp%>
        <li>
           <div style="float:left;">
            <a href="{this.GetUrl(TempUrl)}" title="{item.Title}"  target="_blank">
              
                <%if item.Title.Length<=30%>{item.Title}<%else%>{item.Title.Substring(0,30)}...<%/if%>
                <%csharp%> TempUrl = item.PostTime.ToString("yyyy-MM-dd"); <%/csharp%>
            </a>
        <font color="#808080">[{TempUrl}]</font>
           </div>
         <div style="float:right;">
              <%csharp%>TempUrl = "/Profile/Index.aspx?uid=" + item.HostUserId;<%/csharp%>
            <a href="{this.GetUrl(TempUrl)}"  target="_blank">{UserBLL.Instance.GetUserInfo(item.HostUserId).UserName}</a>
          </div>
        </li>
        
        <%csharp%>}<%/csharp%>
    </div>
   <div style="padding-top:10px; padding-bottom:5px; padding-right:5px;">
			<div class="pages">
				{PagingString}
			</div>
	</div>

    <%csharp%>TempUrl = ModuleCtrl.Footer("LogTopicLattest"); <%/csharp%>
 {TempUrl}


</div>

<div class="col2">
 <%csharp%>TempUrl = ModuleCtrl.Header4("admin","管理中心",false,false); <%/csharp%>
{TempUrl}
<div class="admin">
<%csharp%>TempUrl = "/SymptomHistory/Index.aspx";<%/csharp%> 
     <li><a href="{GetUrl(TempUrl)}">更新病情</a></li>
     
<%csharp%>TempUrl = "/User/LogList.aspx";<%/csharp%> 
     <li><a href="{GetUrl(TempUrl)}">我的日志</a>&nbsp;
     
<%csharp%>TempUrl = "/User/LogAdd.aspx";<%/csharp%>      
     <a href="{GetUrl(TempUrl)}" style="color:Green; font-size:12px; text-decoration:underline;">写日志</a>
<%csharp%>TempUrl = "/User/PatientLogs.aspx";<%/csharp%>    
     &nbsp;<a href="{GetUrl(TempUrl)}" style="color:Green; font-size:12px; text-decoration:underline;">随便看看</a>
     
     </li>
 <%csharp%>TempUrl = "/User/FriendList.aspx";<%/csharp%> 
    <li><a href="{GetUrl(TempUrl)}">我的病友</a></li>
<%csharp%>TempUrl = "/User/ActionList.aspx?uid="+UserData.Id;<%/csharp%> 
     <li><a href="{GetUrl(TempUrl)}">我的互动</a></li>
     <li>
       <%csharp%>TempUrl = "/SymptomHistory/Index.aspx";<%/csharp%> 
      <p style="text-align:right; font-weight:bold; padding:5px">>><a href="{this.GetUrl(TempUrl)}" style="color:Green; font-size:14px; text-decoration:underline;">管理中心</a></p>
    </li>
</div>
 
     
 <%csharp%>TempUrl = ModuleCtrl.Footer("admin"); <%/csharp%>
 {TempUrl}



  <%csharp%>TempUrl = ModuleCtrl.Header4("LattestVisitors","最近看过我的病友",false,false); <%/csharp%>
{TempUrl}

  <ul class="pictureliststyle">
<%csharp%>foreach(VisitRecordInfo item in LattestVisitRecordList){<%/csharp%>
<%csharp%> TempUrl="/Profile/Index.aspx?uid="+item.VisitUserId;<%/csharp%>
            
                <li>
                <a href="{GetUrl(TempUrl)}" class="user_img" target="_blank"><img src="{UserBLL.Instance.GetUserInfo(item.VisitUserId).Avatar}" width="45px" height="45px"/></a>
                <p><a href="{GetUrl(TempUrl)}" target="_blank">{item.VisitUserName}</a></p>
                <p style="font-size:11px; color:#808080;line-height:12pt;">{item.VisitTime.Month}月{item.VisitTime.Day}日</p>
                </li>
             
           
                <%csharp%> } <%/csharp%>
                  
  </ul> 

 <%csharp%>TempUrl = ModuleCtrl.Footer("LattestVisitors"); <%/csharp%>
 {TempUrl}
 
		

 </div>
</div>


<%template _footer%>